package com.neuedu.shop.mapper;

import com.neuedu.shop.entity.Category;
import com.neuedu.shop.entity.Product;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.neuedu.shop.vo.ConditionVO;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Qin
 * @since 2021-04-10
 */
public interface ProductMapper extends BaseMapper<Product> {
    /*
    * 表连接查询：t_product和t_category表
    * */
    List<Product> selectAll();
    //添加商品，需要上传商品图片到本地
    void insertProduct(Product product);

    List<Product> complexSearchByCondition(ConditionVO conditionVO);

}
